import Vue from 'vue'
import to from 'await-to-js'
//引入根组件
import App from './App.vue'
//引入路由
import router from "@/router";
//引入Vuex
import store from '@/store'
//引入mock模拟数据
import '@/mock'
//引入elementUI
import '@/main/elementUI'
//引入公共组件
import '@/main/publicCom'
//引入表单校验
import '@/main/validator'
//引入图片懒加载
import '@/main/lazyload'


Vue.config.productionTip = false


new Vue({
    render: h => h(App),
    beforeCreate() {
        Vue.prototype.$bus = this
        //收集async/await报错信息的库
        Vue.prototype.$to = to
    },
    router,
    store,
}).$mount('#app')
